imcontext: Fix typo on ctrl+shift+u hex sequences handling
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 2 Oct 2017 16:11:53 +0000 (18:11 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 2 Oct 2017 16:13:57 +0000 (18:13 +0200)
This condition was meant to exit when the event has no keyval (eg. fed a
non-keyboard event somehow).

gtk/gtkimcontextsimple.c

index cfc7b694719f4ede967766ca6a1feccad67a7a8c..06bdfb4160baa47e90a7f483ed9c13d3f37f4d4e 100644 (file)
@@ -1102,7 +1102,7 @@ canonical_hex_keyval (GdkEventKey *event)
   gint n_vals = 0;
   gint i;
 
-  if (gdk_event_get_keyval ((GdkEvent *) event, &event_keyval))
+  if (!gdk_event_get_keyval ((GdkEvent *) event, &event_keyval))
     return 0;
 
   /* See if the keyval is already a hex digit */